package cn.itcast.service.impl;

import cn.itcast.dao.kehuDao;
import cn.itcast.domain.kehu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("kehuService")
public class kehuService {
    @Autowired
    private kehuDao kehudao;

    public List<kehu> findAllkehu() {
        return kehudao.findAllkehu();
    }
    public kehu findkehuByNum(Integer num){
        return kehudao.findkehuByNum(num);
    }

    public void updatekehu(kehu kh){
        kehudao.updatekehu(kh);
        return ;
    }

    public kehu findkehuById(String Id_num){
        return kehudao.findkehuById(Id_num);
    }

    public void insertkehu(kehu kh){kehudao.insertkehu(kh);return ;}

    public kehu findkehuByName(String name){return kehudao.findkehuByName(name);}
}
